package com.mls.education.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.mls.common.annotation.Excel;
import com.mls.common.core.domain.BaseEntity;

/**
 * 课程信息对象 edu_course
 * 
 * @author admin
 * @date 2022-02-19
 */
public class EduCourse extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 课程ID */
    private Integer id;

    /** 课程名 */
    @Excel(name = "课程名")
    private String name;

    /** 发布人ID */
    @Excel(name = "发布人ID")
    private Long userId;

    /** 课程类型 */
    @Excel(name = "课程类型")
    private Integer type;

    /** 课程状态 */
    @Excel(name = "课程状态")
    private Integer status;

    /** 课程介绍 */
    @Excel(name = "课程介绍")
    private String about;

    /** 封面背景 */
    @Excel(name = "封面背景")
    private String cover;

    public void setId(Integer id) 
    {
        this.id = id;
    }

    public Integer getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setType(Integer type) 
    {
        this.type = type;
    }

    public Integer getType() 
    {
        return type;
    }
    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }
    public void setAbout(String about) 
    {
        this.about = about;
    }

    public String getAbout() 
    {
        return about;
    }

    public String getCover() {
        return cover;
    }

    public void setCover(String cover) {
        this.cover = cover;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("userId", getUserId())
            .append("type", getType())
            .append("status", getStatus())
            .append("about", getAbout())
            .append("cover", getCover())
            .toString();
    }
}
